﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="EZCRS.HCMS.Web.manage.booklog.orderstatus" Codebehind="orderstatus.aspx.cs" %>
<%@ Register assembly="Book38.Net.CustomControl" namespace="Book38.Net.CustomControl" tagprefix="cc2" %>
<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register Src="../usercontrol/jspage.ascx" TagName="jspage" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
   <title></title>

   <script src="../../Common/base_grid.js" language="javascript" type="text/javascript"></script>  
   
   
   
   <script src="../../common/calendar1.js" language="javascript" type="text/javascript"></script>
     
</head>
<body onload="Page_Load('First')">
    <form id="form1" runat="server">
        <uc2:titlepage id="Titlepage1" runat="server" inittitle="<%$ Resources:Site, CheckInRecord %>"></uc2:titlepage>
        
        <table class="main-table"  cellpadding="1" cellspacing="1">
            <tr class="line-even">
                <td style="width:10%; text-align: right;">
                    <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Site, UserName %>"></asp:Label>：</td>
                <td width="19%" style="text-align: left;">
                    &nbsp;<cc2:WebTextBox ID="uname" runat="server" CssClass="text-line" Width="150px"></cc2:WebTextBox></td>
                <td style="width:10%; text-align: right;">
                    <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Site, BookDate %>"></asp:Label>：</td>
                <td  style="width:30%; text-align: left;">
                    <input id="bstart" class="text-line" style="width: 100px" type="text" runat="server"/>&nbsp;-
                    <input id="bend" class="text-line" style="width: 100px" type="text" runat="server"/> </td> 
                <td  style="width: 20%">
                    <asp:DropDownList ID="ordersort" runat="server">
                        
              </asp:DropDownList></td>
            </tr>
            
            <tr class="line-even">
                <td style="text-align: right">
                    <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Site, ConfirmNo %>"></asp:Label>：</td>
                <td style="text-align: left;">
                    &nbsp;<cc2:WebTextBox ID="uorder" runat="server" CssClass="text-line" Width="150px"></cc2:WebTextBox></td>
                <td style="text-align: right">
                    <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Site, CheckInDate %>"></asp:Label>：</td>
                <td style="text-align: left"><input id="cstart" class="text-line" style="width: 100px" type="text"  runat="server"/>
                    -
                    <input id="cend" class="text-line" style="width: 100px" type="text"  runat="server" />
                    </td> 
                <td style="text-align: left">
                    <asp:DropDownList ID="ddlsource" runat="server" Width="80px">
                    </asp:DropDownList>
&nbsp;<asp:Button  ID="BtnSearch"  runat="server" CssClass="bttn" OnClientClick="javascript:Page_Load('Search');return false;" Text="<%$ Resources:Site, ButtonSearch %>" />
                </td>
            </tr>
        </table>
        <br />
        <div class="optbar">&nbsp;
               （<asp:Literal ID="labfiledown" runat="server" Text="<%$ Resources:Site,GetReports %>"></asp:Literal><asp:ImageButton
                   ID="ImageButton2" runat="server" AlternateText="<%$ Resources:Site, LabCardNumbExportExcel %>"
                   ImageUrl="~/Image/Excel.GIF"   OnClientClick="javascript:down('xls');return false;"  />
               <asp:ImageButton ID="ImageButton1" runat="server" AlternateText="<%$ Resources:Site, LabCardNumbExportTxt %>"
                   ImageUrl="~/Image/document.gif"   OnClientClick="javascript:down('txt');return false;" />）
               </div>
    <input type="hidden" id="orderkey" value="0" /><input type="hidden" id="txt_sql" value="" />
  <br /><uc1:jspage id="Jspage1" runat="server"></uc1:jspage>
   <script type="text/javascript">
   function createsearch()
   {
     var sstr="";
        sstr+=$F("uname").value+"|";
        sstr+=$F("uorder").value+"|";
        sstr+=$FDate("bstart")+"|";
        sstr+=$FDate("bend")+"|";
        sstr+=$FDate("cstart")+"|";
        sstr+=$FDate("cend")+"|";
        sstr+=$F("ordersort").value+"|";
        sstr+=$F("ddlsource").value;
        return sstr;
   }
   function down(filetype)
   {
     var sstr=createsearch();
     downloadfile(filetype,'checkin',sstr);
   }
    function Page_Load(pageindex)
    {//debugger
        var sstr=createsearch();
        pageindex=pageIndexSetting(pageindex);    //pageindex的设定
        EZCRS.HCMS.myajax.CardUserLog.CheckInRecord(pageindex, sstr,$F('orderkey').value,setTable);
        pageLastSetting(sstr,pageindex);     //最后的赋值
       
    }
    function setorders(orderstr)
    {
     if($F("orderkey").value==orderstr)
     {
      $F("orderkey").value=orderstr+orderstr;
     }
     else
     {
      $F("orderkey").value=orderstr;
     }
     Page_Load("First");
    }
    
    AjaxPro.timeoutPeriod = 40000;
    var l = $F("loadinfo");
    AjaxPro.onLoading = function(b)
    {
        l.innerHTML="<img src=\"../../Image/loading.gif\" alt=\"Loading\" align=\"absmiddle\" /><%= Resources.Site.LabLoadInfo %>";
    }    
    AjaxPro.onError = function(e) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    } 
    AjaxPro.onTimeout = function(t) 
    {
        l.innerHTML="<%= Resources.Site.LabLoadErrInfo %>";
    }
    
    
   </script> 

    
   
    </form>
  
    
   
</body>
</html>




